package operation;

import book.Book;
import book.BookList;

/**
 * Created with IDEA
 * author:ju bai
 * Date:2021/1/18
 * Time:18:17
 **/
public class DisOperation implements IOperation{
    @Override
    public void work(BookList bookList) {
        System.out.println("显示图书！");

        for (int i = 0; i < bookList.getSize(); i++) {
            Book book = bookList.getBooks(i);
            System.out.println(book);
        }
    }
}
